/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.servinf.ani.sincronizador.service;

import com.servinf.ani.sincronizador.dao.AssignmentStateDAO;
import com.servinf.ani.sincronizador.entities.EstadoIniciativa;
import com.servinf.ani.sincronizador.entities.EstadoIntervencion;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Clase de servicios para el tipo de proyecto.
 * @author mortiz
 */
@Component
public class AssignmentStateService {
    
    private AssignmentStateDAO assignmentStateDAO;

    public AssignmentStateDAO getAssignmentStateDAO() {
        return assignmentStateDAO;
    }

    @Autowired
    public void setAssignmentStateDAO(AssignmentStateDAO assignmentStateDAO) {
        this.assignmentStateDAO = assignmentStateDAO;
    }
   
   
    public List<EstadoIntervencion> findALl(){
            List<EstadoIntervencion> states = getAssignmentStateDAO().findAll();
            return states;
    }
    
}
